// 放置项目的配置信息
const apiUrl = "http://172.16.1.103:8080"
export const API_CONFIG = {
    loginApi: apiUrl+"/api/auth/login",
    logoutApi: "",
    menusApi: apiUrl+ "/api/menus/query",
    getMenusListInfoApi: apiUrl+"/api/menus/list",
    addMenusListInfoApi: apiUrl+"/api/menus/list",
    updateMenusListInfoApi: (id)=>`${apiUrl}/api/menus/list/${id}`,
    delMenusListInfoApi: (id)=>`${apiUrl}/api/menus/list/${id}`,
    userAllListApi: apiUrl+ "/sys/user/list",
    loginAuth0: apiUrl+"/api/auth/loginAuth0",
    auth0Token: apiUrl+"/api/auth/auth0token",
    deluserapi: apiUrl+"/sys/user/delete",
    adduserapi: apiUrl+"/sys/user/add",
    getDepartmentListInfoApi: apiUrl+"/sys/department/list",
    addDepartmentListInfoApi: apiUrl+"/sys/department/list",
    updateDepartmentListInfoApi: (id)=>`${apiUrl}/sys/department/list/${id}`,
    delDepartmentListInfoApi: (id)=>`${apiUrl}/sys/department/list/${id}`,
    getRolesListApi: apiUrl+"/sys/roles/list",
    getMenuTreeApi: apiUrl+"/sys/roles/permission",
    createRolesBindInfoApi: apiUrl+"/sys/roles/rolebind",
    getRolesBindInfoApi: (id)=>`${apiUrl}/sys/roles/rolebind/${id}`, 
    getRolesListInfoApi: apiUrl+"/sys/roles/rolelist",
    addRolesListInfoApi: apiUrl+"/sys/roles/rolelist",
    getUserRoleBindInfoApi: (username)=>`${apiUrl}/sys/roles/rolelist/${username}`,
    updateRolesListInfoApi: (id)=>`${apiUrl}/sys/roles/rolelist/${id}`,
    delRolesListInfoApi: (id)=>`${apiUrl}/sys/roles/rolelist/${id}`,
    getAdListApi: apiUrl+"/sys/ad/list",
    getAssetsListApi: apiUrl+"/sys/assets/list",
    addAssetsListApi: apiUrl+"/sys/assets/add",
    delAssetsListApi: apiUrl+"/sys/assets/del",
    getAssetHardConfigInfoApi: apiUrl+ "/sys/assets/configinfo",
    saveAssetHardConfigInfoApi: apiUrl+ "/sys/assets/savehardconfig",
    getAssetCategoryInfoApi: apiUrl+ "/sys/assets/categoryinfo",
    delAssetCategoryInfoApi: (id)=>`${apiUrl}/sys/assets/categoryinfo/${id}`,
    addAssetCategoryInfoApi: apiUrl+ "/sys/assets/categoryinfo",
    updateAssetCategoryInfoApi: (id)=>`${apiUrl}/sys/assets/categoryinfo/${id}`,
    getKnowledgeInfoApi: apiUrl+ "/sys/knowledge/list",
    delKnowledgeInfoApi: (id)=>`${apiUrl}/sys/knowledge/list/${id}`,
    addKnowledgeInfoApi: apiUrl+ "/sys/knowledge/list",
    updateKnowledgeInfoApi: (id)=>`${apiUrl}/sys/knowledge/list/${id}`,
    getKnowledgeReviewGroupInfoApi: apiUrl+ "/sys/knowledge/reviewinfo",
    delKnowledgeReviewGroupInfoApi: (id)=>`${apiUrl}/sys/knowledge/reviewinfo/${id}`,
    addKnowledgeReviewGroupInfoApi: apiUrl+ "/sys/knowledge/reviewinfo",
    updateKnowledgeReviewGroupInfoApi: (id)=>`${apiUrl}/sys/knowledge/reviewinfo/${id}`,
    getKnowledgeTypeInfoApi: apiUrl+ "/sys/knowledge/typeinfo",
    delKnowledgeTypeInfoApi: (id)=>`${apiUrl}/sys/knowledge/typeinfo/${id}`,
    addKnowledgeTypeInfoApi: apiUrl+ "/sys/knowledge/typeinfo",
    updateKnowledgeTypeInfoApi: (id)=>`${apiUrl}/sys/knowledge/typeinfo/${id}`,
    addKnowledgeReviewRecordsInfoApi: apiUrl+ "/sys/knowledge/reviewrecords",
    getKnowledgeReviewRecordsInfoApi: apiUrl+ "/sys/knowledge/reviewrecords",
    updateKnowledgeReviewRecordsInfoApi: (code)=>`${apiUrl}/sys/knowledge/reviewrecords/${code}`,
}

export const CONFIG = {
    TOKEN_NAME: "Authorization",
    MENUS: "menus",
    MD5HASH: "md5Hash",
    LOGINTYPE: "loginType",
    LOGINNAME: "loginName",
    USERROLEINFO: "userRoleInfo",
    PublicKey: `-----BEGIN PUBLIC KEY-----
    MIIBIjANBgkqhkiG9w0BAQEFAAOCAQ8AMIIBCgKCAQEAs+9P7Q3ePfvA6WmbHPJv
    qqfMro3vfsng/uEckRrDO1nTm3OJBYwrnhKKLM70wQJGFp0dC+lIteo9APpGyrAd
    ffvk5rFZwvIK9ydPT+aiyJNHXrAoMHqWH9MbpjP0DAcO6NHSQyDTik9peRn86itI
    IgPuoTF+LXESPdksQ0LHNACpbcOJrLldLZIRPBJO1lLkMtaQDQrvAUpqPAor+gYi
    5tpFTf63iiXMXyZOO8lFe/jq/U7le641Uldl8GpY+u9oBdqJceDk4J73f5lg/H1Q
    amu/Sy25ijOU9/Yrk/BufH1gF0V4KgzqLt7JfhsRjSBTxANon+vqUgUon1FZRWcS
    DwIDAQAB
    -----END PUBLIC KEY-----`
}
